#ifndef _DICT_SCHEMA_H_
#define _DICT_SCHEMA_H_

#include "/usr/include/mysql/mysql.h"
#include "schema_manager.h"
#include <list>
using namespace std;



struct dict_schema_t
{
	bool quit;
	list<table_op_t*> table_ops[DICT_SCHEMA_THREAD_COUNT];
	pthread_mutex_t lockers[DICT_SCHEMA_THREAD_COUNT];
	pthread_cond_t conds[DICT_SCHEMA_THREAD_COUNT];
};

int init_dict_schema(dict_schema_t& dict_schema);
void quit_dict_schema(dict_schema_t* dict_schema);

int add_to_dict_schema(void* keyword);//keyword_t


extern dict_schema_t g_dict_schema;

#endif

